'use strict'

let Koa = require('koa');
let bodyparser = require('koa-bodyparser');
let server = require('koa-static');

let app = new Koa();

let controllers = require('./controllers');
let templating = require('./templating');

app.use(bodyparser());
app.use(templating);
app.use(server(__dirname),'/static');
app.use(controllers());

(async()=>{

})

let part = 3006;
app.listen(part,()=>{
    console.log("http://localhost:3006");
})